export const rules = {
  //编写手机号登录规则
  name: [
    {
      required: true,
      message: '手机号是一定要写的',
      trigger: 'blur'
    },
    {
      pattern: /^[0-9]{11}$/,
      message: '手机号长度在0到11个字符或者数字',
      trigger: 'blur'
    }
  ],
  code: [
    {
      required: true,
      message: '验证码是必填的',
      trigger: 'blur'
    },
    {
      pattern: /^[a-z0-9]{6}$/,
      message: '验证码要求6个字符',
      trigger: 'blur'
    }
  ]
}
